import Spinner from '@/components/spinner'
import React, { Suspense } from 'react'

export default function LazyLoad(Comp: React.LazyExoticComponent<()=>JSX.Element>) {
    return (
        <Suspense fallback={<Spinner/> }>
        {/* <Suspense> */}
            <Comp />
        </Suspense>
  )
}
